<form class="layui-form" onsubmit="return false;">
    <input type="hidden" name="id" value="#(bean.id??)">
    <div class="main-container">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label required">参数名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="#(bean.name??)" lay-verify="required" autocomplete="off" placeholder="请输入参数名称" class="layui-input">
            </div>
            <label class="layui-form-label required">系统类型</label>
            <div class="layui-input-inline">
                <input type="radio" name="isSys" value="1" title="是" #if(bean.isSys?? || bean.status?? == null) checked #end>
                <input type="radio" name="isSys" value="0" title="否" #if(!bean.isSys??) checked #end>
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">参数类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required">
                    <option value="">-- 请选择 --</option>
                #DICTS(type="config_type")#for(item : dicts)
                    <option value="#(item.value)"#if(item.value == bean.type??) selected#end>#(item.label)</option>
                #end#end
                </select>
                <div class="layui-form-mid layui-word-aux"><i class="layui-icon layui-icon-about"></i>&nbsp;页面上通过#('#')SITE(参数代码)、#('#')COMPANY(参数代码)、#('#')APP(参数代码)、#('#')CONFIG(参数代码)取值</div>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label required">参数代码</label>
            <div class="layui-input-inline">
                <input type="text" name="code" value="#(bean.code??)" lay-verify="required" autocomplete="off" placeholder="请输入参数代码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label required">参数值</label>
            <div class="layui-input-block">
                <textarea name="value" lay-verify="required" autocomplete="off" placeholder="请输入参数值" class="layui-textarea">#(bean.value??)</textarea>
            </div>
        </div>
        <div class="layui-form-item layui-block">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" autocomplete="off" placeholder="请输入备注内容" class="layui-textarea">#(bean.remark??)</textarea>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="display: none;">
        <div class="layui-input-block">
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="data-save" id="data-save">
                <i class="layui-icon layui-icon-ok"></i> 提交
            </button>
        </div>
    </div>
</form>
#include("/admin/_common/foot.html")
</script>
